import request from '@/utils/request'

// 新增文章
export function addArticle(data) {
    return request({
        url: '/article/add',
        method: 'post',
        data: data
    })
}

// 查询文章列表
export function listArticle(query) {
    return request({
        url: '/article/list',
        method: 'get',
        params: query
    })
}

// 更新文章
export function updateArticle(data) {
    return request({
        url: '/article/update',
        method: 'post',
        data: data
    })
}

// 删除项目
export function delArticle(articleIds) {
    return request({
        url: '/article/' + articleIds,
        method: 'delete'
    })
}

// 查询项目详情
export function outDetailArticle(query) {
    return request({
        url: '/out/article/detail',
        method: 'get',
        params: query
    })
}






// 查询项目列表
export function outListArticle(query) {
    return request({
        url: '/out/article/list',
        method: 'get',
        params: query
    })
}



// 项目详情
export function detailProject(query) {
    return request({
        url: '/project/detail',
        method: 'get',
        params: query
    })
}



